/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Nurhat Uca
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_log_detailsDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression guid;
    public final StringExpression message;
    public final StringExpression logLevel;
    public final StringExpression logClass;
    public final StringExpression dateExecuted;
    public final StringExpression objectDescription;

    public T_test_log_detailsDetachedCriteria() {
	super(org.testis.orm.classes.T_test_log_details.class,
		org.testis.orm.classes.T_test_log_detailsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	guid = new StringExpression("guid", this.getDetachedCriteria());
	message = new StringExpression("message", this.getDetachedCriteria());
	logLevel = new StringExpression("logLevel", this.getDetachedCriteria());
	logClass = new StringExpression("logClass", this.getDetachedCriteria());
	dateExecuted = new StringExpression("dateExecuted",
		this.getDetachedCriteria());
	objectDescription = new StringExpression("objectDescription",
		this.getDetachedCriteria());
    }

    public T_test_log_detailsDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_test_log_detailsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	guid = new StringExpression("guid", this.getDetachedCriteria());
	message = new StringExpression("message", this.getDetachedCriteria());
	logLevel = new StringExpression("logLevel", this.getDetachedCriteria());
	logClass = new StringExpression("logClass", this.getDetachedCriteria());
	dateExecuted = new StringExpression("dateExecuted",
		this.getDetachedCriteria());
	objectDescription = new StringExpression("objectDescription",
		this.getDetachedCriteria());
    }

    public T_test_log_details uniqueT_test_log_details(PersistentSession session) {
	return (T_test_log_details) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_test_log_details[] listT_test_log_details(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_log_details[]) list.toArray(new T_test_log_details[list
		.size()]);
    }
}
